<?php
//查询管理员
    header("Access-Control-Allow-Origin: *"); // 允许跨域的地址，* 表示全部
    header("Access-Control-Allow-Methods", "PUT,POST,GET,DELETE,OPTIONS"); // 允许的请求方法
    header("Access-Control-Allow-Headers: version, access-token, user-token"); // 允许的请求头属性

    include '../util/connect.php';

    $pageIndex = $_POST['pageIndex'];//页码
    $pageSize = 20;//页容量
    $Phone = $_POST['Phone'];

    $start = ( $pageIndex - 1 ) * $pageSize;
    $sql = "select * from admin where Phone like '%$Phone%' and `Status` = '0' limit $start,20";
    
    // $sql = "select * from user where Status = '0' ";
    $data = my_Select($sql);

    echo json_encode($data,JSON_UNESCAPED_UNICODE);